let { config } = require('../common/utils/ws/ws-config.js');
module.exports = {
  $util: require('static/js/util'),
  onLaunch: function(options) {
    wx.setStorageSync('alreadyShowPoster', false);
    try {
    const verify = require('/verify_mpsdk/main');
    verify.init({
      env: 'release',
    });
    }
    catch (err) {
      console.log(err);
    }
  },
  onShow() {
    if (config.module_type === 'saas' && wx.systemInfo.environment !== 'wxwork') {
      wx.redirectTo({
        url: '/ws_party_const/pages/saaslogin/saaslogin',
      });
    }
  },
};